package com.cnplan.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * Created by Administrator on 2018/4/25.
 */
@TableName("sys_user")
public class SystemUser implements Serializable {

    @TableId
    private Long id;
    private String userName;
    private String userPassword;
    private String passwordSalt;
    private String realName;
    private String deptName;
    private String phone;
    private String email;
    private Boolean active;

//    private List<SystemRole> systemRoleList;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getPasswordSalt() {
        return passwordSalt;
    }

    public void setPasswordSalt(String passwordSalt) {
        this.passwordSalt = passwordSalt;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Boolean getActive() {
        return active;
    }

    public void setActive(Boolean active) {
        this.active = active;
    }

//    public List<SystemRole> getSystemRoleList() {
//        return systemRoleList;
//    }
//
//    public void setSystemRoleList(List<SystemRole> systemRoleList) {
//        this.systemRoleList = systemRoleList;
//    }
//
//    public Set<String> getRoles() {
//        Set<String> stringSet = new HashSet<String>();
//        for (SystemRole systemRole : this.systemRoleList) {
//            stringSet.add(systemRole.getRoleName());
//        }
//        return stringSet;
//    }
}
